<?php

namespace App\Http\Controllers\web;

use App\Http\Controllers\Controller;
use App\Repository\RepositoryInterface\StoreMemberInterface;
use Illuminate\Http\Request;

class StoreMemberController extends Controller
{
    protected $storeMember;

    public function __construct(StoreMemberInterface $storeMember){
        $this->storeMember = $storeMember;
    }
    /**
     * 添加核销员
     * @param Request $request
     * @return mixed
     */
    public function addMember(Request $request){
        $params = $request->all();
        return $this->storeMember->addMember($params);
    }

    /**
     * 删除核销员
     * @param Request $request
     * @return mixed
     */
    public function delVerifier(Request $request){
        $params = $request->get('id');
        return $this->storeMember->delVerifier($params);
    }

    /**
     * 核销员列表
     * @param Request $request
     * @return mixed
     */
    public function verifierList(Request $request){
        $hid = $request->get('id');
        return $this->storeMember->verifierList($hid);
    }

    /**
     * 团员列表
     * @param Request $request
     * @return mixed
     */
    public function memberList(Request $request){
        $params = $request->get('id');
        return $this->storeMember->memberList($params);
    }
}
